

function _log(){
    local st=($(caller 0))
    echo "$(date +%Y%m%d_%H%M%S) ${st[2]}:${st[0]} $*"
}

function _log_error(){
    local st=($(caller 0))
    echo "$(date +%Y%m%d_%H%M%S) ${st[2]}:${st[0]} [ERR] $*"
}

function _log_warn(){
    local st=($(caller 0))
    echo "$(date +%Y%m%d_%H%M%S) ${st[2]}:${st[0]} [WARN] $*"
}

function _log_falt(){
    local st=($(caller 0))
    echo "$(date +%Y%m%d_%H%M%S) ${st[2]}:${st[0]} [FATAL] $*"
    exit 1
}

function _log_info(){
    local st=($(caller 0))
    echo "$(date +%Y%m%d_%H%M%S) ${st[2]}:${st[0]} [INFO] $*"
}
